package org.herrdommel.webpagechecker.pages;

import org.herrdommel.webpagechecker.R;
import org.htmlcleaner.TagNode;

import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class AboutFragment extends AbstractPage {

	@Override
	public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
		final TextView tvResult = new TextView(getActivity());
		tvResult.setGravity(Gravity.CENTER);
		tvResult.setText(Html.fromHtml(getString(R.string.content_about)));
		tvResult.setMovementMethod(LinkMovementMethod.getInstance());
		return tvResult;
	}

	@Override
	public void onRadarLoaded(final TagNode content) {
	}

}
